package com.javaProject.service;

import com.javaProject.dto.R;
import com.javaProject.entity.Student;
import com.baomidou.mybatisplus.extension.service.IService;

import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.security.spec.InvalidKeySpecException;
import java.util.List;

/**
* @author ASUS
* @description 针对表【student】的数据库操作Service
* @createDate 2024-03-15 11:50:54
*/
public interface StudentService extends IService<Student> {

    R login(Student student) throws NoSuchAlgorithmException, InvalidKeySpecException;

    R add(Student student) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException;

    R Delect(Student student);

    R upData(Student student) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException;

    List<Student> getAllTeacher() throws NoSuchAlgorithmException, InvalidKeySpecException;

    Student getOneStudent(int student_id) throws NoSuchAlgorithmException, InvalidKeySpecException;

}
